Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for broadcasting Ruuvi Sensor Data service UUID (and any other service UUID) #356

Merged
merged 7 commits into from
Jan 31, 2024

Conversation

ojousima
Copy link
Member

This should help some phones on their background scan.

@reviewpad reviewpad bot added the medium Pull request is medium label Jan 18, 2024
@reviewpad reviewpad bot requested a review from markoaamunkajo January 18, 2024 15:40
Copy link
Contributor

reviewpad bot commented Jan 18, 2024

Reviewpad Report

‼️ Errors

  • Unconventional commit detected: 'Advertise UUID for a POC' (e7821e2)
  • Unconventional commit detected: 'Move hardcoded dependencies to configuration' (9b06b45)
  • Unconventional commit detected: 'Update submodule version reqs' (d9d0644)
  • Unconventional commit detected: 'Update sonarscan action' (4da675b)
  • Unconventional commit detected: 'Add default uuid variant' (66add8b)
  • Unconventional commit detected: 'Add test coverage' (f950ab5)
  • Unconventional commit detected: 'Update submodule, explicitly check for valid format enabled' (e6f68ae)
  • Unconventional title detected: 'Add support for broadcasting Ruuvi Sensor Data service UUID (and any other service UUID)' illegal 'A' character in commit message type: col=00

⚠️ Warnings

  • Please link an issue to the pull request

@ojousima ojousima requested review from TheSomeMan and removed request for markoaamunkajo January 30, 2024 14:11
@ojousima
Copy link
Member Author

@TheSomeMan This PR adds a firmware variant that advertises Ruuvi service UUID. To fit the UUID in, a new shorter data format C5 is added, and drivers have been extended to support UUID advertising.

Especially src/app_dataformats.c data format cycling logic should be checked together with src/app_heartbeat.c enabled data format definition.

Copy link
Collaborator

@TheSomeMan TheSomeMan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

return DF_5;
app_dataformat_t nextState = DF_INVALID;

if (formats.formats)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion from SonarCloud: Explicitly test this expression against zero.

@reviewpad reviewpad bot requested a review from laurijamsa January 31, 2024 13:54
Copy link

@ojousima ojousima removed the request for review from laurijamsa January 31, 2024 16:42
@ojousima ojousima merged commit aa82519 into master Jan 31, 2024
6 checks passed
@reviewpad reviewpad bot requested a review from markoaamunkajo January 31, 2024 16:42
@ojousima ojousima deleted the uuid-poc branch January 31, 2024 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
medium Pull request is medium waiting-for-review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants